package ch15;

/**
 * Created by zhangyunqi on 2017/10/15.
 */
public class Customer {
    private int arrivalTime, departureTime;


    public Customer(int arrives) {
        arrivalTime = arrives;
        departureTime = 0;
    }


    public int getArrivalTime() {
        return arrivalTime;
    }



    public void setDepartureTime(int departs) {
        departureTime = departs;
    }




    public int getDepartureTime() {
        return departureTime;
    }



    public int totalTime() {
        return departureTime - arrivalTime;
    }
}

